package org.lc.platform.oauth2.properties;

import java.util.List;

import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(
        prefix = "properties.oauth2"
)
public class SecurityOauth2Properties {
    /**
     * 静态资源白名单
     */
    private List<String> staticFiles = List.of();
    /**
     * 白名单
     */
    private List<String> whiteUrls = List.of();
    /**
     * JWT token 有效时间
     */
    private Long exp = 7200L;
    /**package org.lc.oauth.config;

      * refreshToken 有效时长
     */
    private Long refreshExp = 604800L;

    /**
     * 是否启动JWT 认证
     */
    private boolean enabledJwt = true;
}
